package org.dromara.answer.domain.vo;

import jakarta.validation.constraints.NotBlank;
import org.dromara.answer.domain.AiQuestions;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.answer.domain.bo.AiOptionsBo;
import org.dromara.answer.domain.bo.AiUserAnswersBo;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 题目视图对象 ai_questions
 *
 * @author Lion Li
 * @date 2025-04-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AiQuestions.class)
public class AiQuestionsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 题目ID，主键
     */
    @ExcelProperty(value = "题目ID，主键")
    private Long questionId;

    /**
     * 题目内容
     */
    @ExcelProperty(value = "题目内容")
    private String title;

    /**
     * 题目类型：single_choice-单选, multiple_choice-多选, fill_blank-填空, true_false-判断题
     */
    @ExcelProperty(value = "题目类型：single_choice-单选, multiple_choice-多选, fill_blank-填空, true_false-判断题")
    private String questionType;

    /**
     * 难度等级：1-5，默认为3
     */
    @ExcelProperty(value = "难度等级：1-5，默认为3")
    private Long difficulty;

    /**
     * 题目分类/标签
     */
    @ExcelProperty(value = "题目分类/标签")
    private String category;

    /**
     * 状态：0-禁用，1-启用
     */
    @ExcelProperty(value = "状态：0-禁用，1-启用")
    private Long status;

    /**
     * 题目分值
     */
    @ExcelProperty(value = "题目分值")
    private Integer score;

    /**
     * 题目解析
     */
    @ExcelProperty(value = "题目解析")
    private String explanation;

    /**
     * 答案
     */
    @ExcelProperty(value = "答案")
    private String answer;

    /**
     * 题目选项列表
     */
    private List<AiOptionsVo> options;

    /**
     * 用户选择的选项
     */
    private AiUserAnswersVo userAnswer;

    /**
     * 题目顺序
     */
    private Integer questionOrder;

    /**
     * 该题在本次考试中的分值
     */
    private Integer questionScore;
}
